package com.lwc.client;


import feign.Param;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("stock-service")
public interface StockRemoteClient {


@PutMapping("/sotck")
    int reduceStock(@RequestParam ("gid") int gid, @RequestParam("num")  int num);

}
